<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<link href="../style/css_qt.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
include("../config/config.php");
$lenh = "select matl,tentl from theloai";
$kq = mysql_query($lenh);


?>
<table width="755" border="1" align="center" cellpadding="0" cellspacing="0" class="title_table_qt">
  <tr class="title_table_qt">
    <td height="50" align="center">STT</td>
    <td height="50" align="center">Mã Thể Loại</td>
    <td height="50" align="center">Tên Thể Loại</td>
    <td height="50" align="center">Xóa</td>
    <td height="50" align="center">Sửa</td>
  </tr>
    <?php
  $stt = $x + 1;
  while($row = mysql_fetch_array($kq))
  {
	  ?>
  <tr class="under_table_qt">
    <td height="50"><?php echo $stt; ?></td>
    <td height="50"><?php  echo $row[0]; ?></td>
    <td height="50"><?php  echo $row[1]; ?></td>
    <td height="50" align="center"><a href="xoatheloai.php?idxoatl=<?php echo $row[0]; ?>">Xóa</a></td>
    <td height="50" align="center"><a href="indexqt.php?idsuatl=<?php echo $row[0]; ?>">SỬA</a></td>
  </tr>
    <?php
  $stt++;
  }
  ?>
</table>
</body>
</html>